package cn.caplike.demo.repository.design.pattern.builder.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 逻辑表描述符
 *
 * @author LiKe
 * @date 2019-07-08 19:10
 */
public final class LogicalTableDescriptor {

    /**
     * 逻辑列名
     */
    private final List<String> columnNameList = new ArrayList<>();
    /**
     * 逻辑表名
     */
    private String tableName;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public List<String> getColumnNameList() {
        return columnNameList;
    }

    public void setColumnName(String columnName) {
        this.columnNameList.add(columnName);
    }

    @Override
    public String toString() {
        return "LogicalTableDescriptor{" +
                "tableName='" + tableName + '\'' +
                ", columnNameList=" + columnNameList +
                '}';
    }
}
